package com.niguang.work.labour.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 83673
 * @since 2018-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_contractor")
public class Contractor extends Model<Contractor> {

    public static final String ID = "id";
    public static final String USER_ID = "user_id";
    public static final String TEAM_ID = "team_id";
    public static final String PRO_ID = "pro_id";
    public static final String PRO_NAME = "pro_name";
    public static final String UNIT_NAME = "unit_name";
    public static final String UNIT_PRICE = "unit_price";
    public static final String PRO_NUM = "pro_num";
    public static final String QUERY_DATE = "query_date";
    public static final String REAMK = "reamk";
    public static final String CREATE_TIME = "create_time";
    private static final long serialVersionUID = 1L;
    private Long id;
    private Long userId;
    private Long teamId;
        /**
     * 分享工程ID
     */
         private Long proId;
    private String proName;
        /**
     * 单位
     */
         private String unitName;
        /**
     * 单位价格
     */
         private BigDecimal unitPrice;
        /**
     * 工程量
     */
         private BigDecimal proNum;
        /**
     * 记录时间
     */
         private LocalDate queryDate;
        /**
     * 备注
     */
         private String reamk;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
